﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;
using System.Xml.Schema;

namespace dasBlog.Storage
{
    internal sealed class XmlSchemaBodyWriter : BodyWriter
    {
        XmlSchema _schema;

        public XmlSchemaBodyWriter(XmlSchema schema):base(false)
        {
            _schema = schema;
        }
        protected override void OnWriteBodyContents(System.Xml.XmlDictionaryWriter writer)
        {
            _schema.Write(writer);
        }
    }
}
